
<!DOCTYPE HTML>
<html lang="en" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>Overview · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    


    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="guide/android.html" />
    
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter active" data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    Overview
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="guide/android.html">
            
                <a href="guide/android.html">
            
                    
                    android
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="guide/ios.html">
            
                <a href="guide/ios.html">
            
                    
                    ios
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" >
            
                <span>
            
                    
                    work process
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="flow/ble_scale.html">
            
                <a href="flow/ble_scale.html">
            
                    
                    Common Bluetooth scale
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="flow/ble_scale_custom_connect.html">
            
                <a href="flow/ble_scale_custom_connect.html">
            
                    
                    Common Bluetooth Scale-Self-managed Bluetooth
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="flow/kitchen_scale.html">
            
                <a href="flow/kitchen_scale.html">
            
                    
                    Kitchen scale
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="flow/ble_user_scale.html">
            
                <a href="flow/ble_user_scale.html">
            
                    
                    User Scale
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="flow/ble_ruler.html">
            
                <a href="flow/ble_ruler.html">
            
                    
                    Bluetooth ruler
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" >
            
                <span>
            
                    
                    API
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="api/QNBleApi.html">
            
                <a href="api/QNBleApi.html">
            
                    
                    QNBleApi
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1.1" data-path="api/QNBleApi.html">
            
                <a href="api/QNBleApi.html#initsdk">
            
                    
                    initSdk
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.2" data-path="api/QNBleApi.html">
            
                <a href="api/QNBleApi.html#getcursystemblestate">
            
                    
                    getCurSystemBleState
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.3" data-path="api/QNBleApi.html">
            
                <a href="api/QNBleApi.html#setsysblestatelistener">
            
                    
                    setSysBleStateListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.4" data-path="api/QNBleApi.html">
            
                <a href="api/QNBleApi.html#setbledevicediscoverylistener">
            
                    
                    setBleDeviceDiscoveryListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.5" data-path="api/QNBleApi.html">
            
                <a href="api/QNBleApi.html#setbleconnectionchangelistener">
            
                    
                    setBleConnectionChangeListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.6" data-path="api/QNBleApi.html">
            
                <a href="api/QNBleApi.html#setdataListener">
            
                    
                    setDataListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.7" data-path="api/QNBleApi.html">
            
                <a href="api/QNBleApi.html#setblekitchenlistener">
            
                    
                    setBleKitchenListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.8" data-path="api/QNBleApi.html">
            
                <a href="api/QNBleApi.html#setloglistener">
            
                    
                    setLogListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.9" data-path="api/QNBleApi.html">
            
                <a href="api/QNBleApi.html#startbledevicediscovery">
            
                    
                    startBleDeviceDiscovery
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.10" data-path="api/QNBleApi.html">
            
                <a href="api/QNBleApi.html#stopbledevicediscovery">
            
                    
                    stopBleDeviceDiscovery
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.11" data-path="api/QNBleApi.html">
            
                <a href="api/QNBleApi.html#connectdevice">
            
                    
                    connectDevice
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.12" data-path="api/QNBleApi.html">
            
                <a href="api/QNBleApi.html#connectuserscaledevice">
            
                    
                    connectUserScaleDevice
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.13" data-path="api/QNBleApi.html">
            
                <a href="api/QNBleApi.html#connectblekitchendevice">
            
                    
                    connectBleKitchenDevice
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.14" data-path="api/QNBleApi.html">
            
                <a href="api/QNBleApi.html#setblekitchendeviceconfig">
            
                    
                    setBleKitchenDeviceConfig
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.15" data-path="api/QNBleApi.html">
            
                <a href="api/QNBleApi.html#disconnectdevice">
            
                    
                    disconnectDevice
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.16" data-path="api/QNBleApi.html">
            
                <a href="api/QNBleApi.html#getconfig">
            
                    
                    getConfig
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.17" data-path="api/QNBleApi.html">
            
                <a href="api/QNBleApi.html#convertweightwithtargetunit">
            
                    
                    convertWeightWithTargetUnit
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.18" data-path="api/QNBleApi.html">
            
                <a href="api/QNBleApi.html#builddevice">
            
                    
                    buildDevice
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.19" data-path="api/QNBleApi.html">
            
                <a href="api/QNBleApi.html#buildprotocolhandler">
            
                    
                    buildProtocolHandler
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.20" data-path="api/QNBleApi.html">
            
                <a href="api/QNBleApi.html#generatescaledata">
            
                    
                    generateScaleData
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.21" data-path="api/QNBleApi.html">
            
                <a href="api/QNBleApi.html#physiquecalculation">
            
                    
                    physiqueCalculation
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.22" data-path="api/QNBleApi.html">
            
                <a href="api/QNBleApi.html#switchuserscaleuser">
            
                    
                    switchUserScaleUser
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.23" data-path="api/QNBleApi.html">
            
                <a href="api/QNBleApi.html#updateuserscaleidentifyweight">
            
                    
                    updateUserScaleIdentifyWeight
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.24" data-path="api/QNBleApi.html">
            
                <a href="api/QNBleApi.html#setblerulerlistener">
            
                    
                    setBleRulerListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.25" data-path="api/QNBleApi.html">
            
                <a href="api/QNBleApi.html#connectrulerdevice">
            
                    
                    connectRulerDevice
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="api/QNUser.html">
            
                <a href="api/QNUser.html">
            
                    
                    QNUser
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="api/QNScaleData.html">
            
                <a href="api/QNScaleData.html">
            
                    
                    QNScaleData
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="api/QNScaleStoreData.html">
            
                <a href="api/QNScaleStoreData.html">
            
                    
                    QNScaleStoreData
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5" data-path="api/QNScaleItemData.html">
            
                <a href="api/QNScaleItemData.html">
            
                    
                    QNScaleItemData
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.6" data-path="api/QNBleDevice.html">
            
                <a href="api/QNBleDevice.html">
            
                    
                    QNBleDevice
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.7" data-path="api/QNBleBroadcastDevice.html">
            
                <a href="api/QNBleBroadcastDevice.html">
            
                    
                    QNBleBroadcastDevice
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.8" data-path="api/QNBleKitchenDevice.html">
            
                <a href="api/QNBleKitchenDevice.html">
            
                    
                    QNBleKitchenDevice
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.9" data-path="api/QNConfig.html">
            
                <a href="api/QNConfig.html">
            
                    
                    QNConfig
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.10" data-path="api/QNWiFiConfig.html">
            
                <a href="api/QNWiFiConfig.html">
            
                    
                    QNWiFiConfig
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.11" data-path="api/QNUserScaleConfig.html">
            
                <a href="api/QNUserScaleConfig.html">
            
                    
                    QNUserScaleConfig
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.12" data-path="api/QNBleKitchenConfig.html">
            
                <a href="api/QNBleKitchenConfig.html">
            
                    
                    QNBleKitchenConfig
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.13" data-path="api/QNBleStateListener.html">
            
                <a href="api/QNBleStateListener.html">
            
                    
                    QNBleStateListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.14" data-path="api/QNBleDeviceDiscoveryListener.html">
            
                <a href="api/QNBleDeviceDiscoveryListener.html">
            
                    
                    QNBleDeviceDiscoveryListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.15" data-path="api/QNBleConnectionChangeListener.html">
            
                <a href="api/QNBleConnectionChangeListener.html">
            
                    
                    QNBleConnectionChangeListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.16" data-path="api/QNScaleDataListener.html">
            
                <a href="api/QNScaleDataListener.html">
            
                    
                    QNScaleDataListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.17" data-path="api/QNUserScaleDataListener.html">
            
                <a href="api/QNUserScaleDataListener.html">
            
                    
                    QNUserScaleDataListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.18" data-path="api/QNBleKitchenListener.html">
            
                <a href="api/QNBleKitchenListener.html">
            
                    
                    QNBleKitchenListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.19" data-path="api/QNLogListener.html">
            
                <a href="api/QNLogListener.html">
            
                    
                    QNLogListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.20" data-path="api/QNResultCallback.html">
            
                <a href="api/QNResultCallback.html">
            
                    
                    QNResultCallback
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.21" data-path="api/QNShareData.html">
            
                <a href="api/QNShareData.html">
            
                    
                    QNShareData
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.22" data-path="api/QNUtils.html">
            
                <a href="api/QNUtils.html">
            
                    
                    QNUtils
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.23" data-path="api/QNBleProtocolHandler.html">
            
                <a href="api/QNBleProtocolHandler.html">
            
                    
                    QNBleProtocolHandler
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.24" data-path="api/QNBleProtocolDelegate.html">
            
                <a href="api/QNBleProtocolDelegate.html">
            
                    
                    QNBleProtocolDelegate
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.25" data-path="api/QNWspScaleDataListener.html">
            
                <a href="api/QNWspScaleDataListener.html">
            
                    
                    QNWspScaleDataListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.26" data-path="api/QNBleRulerDevice.html">
            
                <a href="api/QNBleRulerDevice.html">
            
                    
                    QNBleRulerDevice
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.27" data-path="api/QNBleRulerData.html">
            
                <a href="api/QNBleRulerData.html">
            
                    
                    QNBleRulerData
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.28" data-path="api/QNBleRulerListener.html">
            
                <a href="api/QNBleRulerListener.html">
            
                    
                    QNBleRulerListener
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" >
            
                <span>
            
                    
                    Schedule
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="attouched_list/faq.html">
            
                <a href="attouched_list/faq.html">
            
                    
                    FAQ
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="attouched_list/body_indexes.html">
            
                <a href="attouched_list/body_indexes.html">
            
                    
                    Body Index Constant
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="attouched_list/device_type.html">
            
                <a href="attouched_list/device_type.html">
            
                    
                    Device Type
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="attouched_list/display_module_type.html">
            
                <a href="attouched_list/display_module_type.html">
            
                    
                    Display module type
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="attouched_list/body_shape.html">
            
                <a href="attouched_list/body_shape.html">
            
                    
                    Body shape comparison table
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6" data-path="attouched_list/error_code.html">
            
                <a href="attouched_list/error_code.html">
            
                    
                    Error Code
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7" data-path="attouched_list/area_type.html">
            
                <a href="attouched_list/area_type.html">
            
                    
                    Area Type
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.8" data-path="attouched_list/scan_error.html">
            
                <a href="attouched_list/scan_error.html">
            
                    
                    Scan Error Code
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.9" data-path="attouched_list/scale_state.html">
            
                <a href="attouched_list/scale_state.html">
            
                    
                    Scale State Definition
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.10" data-path="attouched_list/scale_event.html">
            
                <a href="attouched_list/scale_event.html">
            
                    
                    Scale event definition
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.11" data-path="attouched_list/test_list.html">
            
                <a href="attouched_list/test_list.html">
            
                    
                    Test Case
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.12" data-path="history/history.html">
            
                <a href="history/history.html">
            
                    
                    Update Log
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >Overview</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="overview">Overview</h1>
<p> <a href="../zh">&#x4E2D;&#x6587;&#x6587;&#x6863;&#x5165;&#x53E3;&#x5728;&#x8FD9;&#x91CC;</a></p>
<p>This document is used to guide Yolanda customers to access Yunkangbao&apos;s smart devices.</p>
<p>The SDK supports devices, please refer to <a href="attouched_list/device_type.html">Device Type</a></p>
<h2 id="docking-steps">Docking steps</h2>
<h3 id="1-business-application">1. Business application</h3>
<p>Sign a cooperation agreement with Yolanda business staff, our company will provide the <code>appid</code> and<code>configuration file</code> required for development</p>
<p>We will provide a form, as long as you fill out the form according to the requirements and send it to our staff for processing, usually the two things above will be given soon</p>
<blockquote>
<p>Never use the test appid of <code>123456789</code> in the official app, it is unstable, we may block it at any time, or change the appid for test</p>
</blockquote>
<h3 id="2-download-the-research-sdk">2. Download the research SDK</h3>
<p>Download the SDK for the corresponding platform, run the demo using the appid and configuration file applied for above, and study how the demo and documentation use the SDK.</p>
<p>It is strongly recommended that you study the demo before connecting to your own APP. In addition, you can take a look at <a href="attouched_list/faq.html">FAQ</a>, and read the questions carefully, maybe your doubts will be solved.</p>
<blockquote>
<p>Suggest developers <strong><code>star</code></strong> Our SDK project, so that we can receive update notifications in time</p>
</blockquote>
<h3 id="3-design-body-fat-scale-function">3. Design body fat scale function</h3>
<p>Design how to connect the body fat scale in the existing APP. After researching the SDK in the previous step, we can also design a body fat scale for this step to avoid many minefields.</p>
<p>The general steps of using body fat scale are:</p>
<ol>
<li>Add device<blockquote>
<p>This is not configured with Android or iOS systems, Bluetooth 4.0 can support unpaired use. Our body fat scale is a custom protocol, usually only our APP or APP connected to our SDK can be used. Cannot be added to the system, use the system Bluetooth connection.</p>
</blockquote>
</li>
<li>Measurement<blockquote>
<p>The measurement here actually includes Bluetooth scanning and Bluetooth connection. During the measurement process, it is best to show some measurement animations to remind the user that the measurement is being performed to avoid the boring process</p>
</blockquote>
</li>
<li>Save and display data<blockquote>
<p>After receiving the locked measurement data, the data is saved locally and displayed. In order to achieve offline measurement, you can save the data locally and then upload it to the server. If there is no network at the time, you can wait for the network to upload the data to the server. The way to display data can refer to our APP, of course, if you have your own style and analysis method, you can also use your own.</p>
</blockquote>
</li>
</ol>
<h3 id="4-develop-app-function">4. Develop APP function</h3>
<p>According to the designed function, connect the SDK to the APP.</p>
<p>Pay special attention to the location permission and location service switch of Android. iOS requires Bluetooth permission after the main 13 version.</p>
<h3 id="5-self-test-function">5. Self-test function</h3>
<p>After the development is completed, you can use our provided test case <a href="attouched_list/SDK_Checklist.xlsx">SDK test case</a> to verify whether the weighing function can be used.</p>
<blockquote>
<p>The above attachments can be downloaded by right-clicking</p>
</blockquote>
<p>If possible, it is recommended to send the test version to Yolanda, we will arrange testers to assist customers in APP testing.</p>
<p>We will mention the results of the test and some of our views on the APP to our customers.</p>
<h3 id="6-submit-online">6. Submit online</h3>
<p>After the test is completed, it will be submitted online. It&apos;s best to inform Yolanda when you go online successfully. In this way, Yolanda will register the online results and continue to follow up the experience.</p>
<h2 id="sdk-download-link">SDK download link</h2>
<p>The SDK file is no longer a separate download link. The following is the Demo provided by us. The Demo project has the latest SDK file.</p>
<p><a href="https://github.com/YolandaQingniu/sdk-ios-demo.git" target="_blank">iOS</a></p>
<p><a href="https://github.com/YolandaQingniu/qnscalesdkX.git" target="_blank">Android</a></p>
<h2 id="integration">Integration</h2>
<p><a href="guide/android.html">Android integration</a></p>
<p><a href="guide/ios.html">iOS integration method</a></p>
<h2 id="development-process">Development Process</h2>
<p>Before using the SDK, you need to call initialization first, the method is: <a href="api/QNBleApi.html#initsdk">QNBleApi.initSdk</a></p>
<p>Code example:</p>
<pre><code class="lang-java"><span class="hljs-comment">//Android sample code</span>
String configFilePath = <span class="hljs-string">&quot;file:///android_asset/test123456789.qn&quot;</span>;
QNBleApi.getInstance(context).initSdk(<span class="hljs-string">&quot;test123456789&quot;</span>, configFilePath, <span class="hljs-keyword">new</span> QNResultCallback() {
    <span class="hljs-meta">@Override</span>
    <span class="hljs-function"><span class="hljs-keyword">public</span> <span class="hljs-keyword">void</span> <span class="hljs-title">onResult</span><span class="hljs-params">(<span class="hljs-keyword">int</span> code, String msg)</span> </span>{
Log.d (<span class="hljs-string">&quot;BaseApplication&quot;</span>, <span class="hljs-string">&quot;Initialization file&quot;</span> + msg);
    }
});
</code></pre>
<pre><code class="lang-Objective-c">NSString *file = [[NSBundle mainBundle] pathForResource:@&quot;123456789&quot; ofType:@&quot;qn&quot;];
[[QNBleApi sharedBleApi] initSdk:@&quot;123456789&quot; firstDataFile:file callback:^(NSError *error) {
}];
</code></pre>
<p>The initialization method is the method that any device needs to call. The following is the workflow of different device types.</p>
<p>If you do n&#x2019;t know what kind of device you have, you can refer to <a href="attouched_list/faq.html#how-to-determine-the-type-of-device">How to determine the type of device</a></p>
<h3 id="workflow-of-common-bluetooth-scale"><a href="flow/ble_scale.html">Workflow of common Bluetooth scale</a></h3>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                
                <a href="guide/android.html" class="navigation navigation-next navigation-unique" aria-label="Next page: android">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"Overview","level":"1.1","depth":1,"next":{"title":"android","level":"1.2","depth":1,"path":"guide/android.md","ref":"guide/android.md","articles":[]},"dir":"ltr"},"config":{"plugins":["mermaid-gb3"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"mermaid-gb3":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"language":"en","gitbook":"*"},"file":{"path":"README.md","mtime":"2022-03-01T12:53:11.303Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2023-01-16T11:02:39.181Z"},"basePath":".","book":{"language":"en"}});
        });
    </script>
</div>

        
    
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-mermaid-gb3/book/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    <script src="../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.min.js"></script>

    </body>
</html>

